<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php if (is_home()){
		$description  = get_option('mao10_test_des');
		$keywords = get_bloginfo('name');
	} 
	elseif (is_single() || is_page()){
		$description1 =  $post->post_excerpt ;
		$description2 = mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 200, "…");
		$description = $description1 ? $description1 : $description2;
	
		$keywords = "";
		$tags = wp_get_post_tags($post->ID);
		foreach ($tags as $tag ) {
			$keywords = $keywords . $tag->name . ", ";
		}
	} elseif(is_category()){
		$description = category_description();
	}
?>
<meta name="keywords" content="<?php echo $keywords ?>" />
<meta name="description" content="<?php echo $description ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/css/global.css" />
<title><?php if (is_single() || is_page() || is_archive() || is_search()) { ?><?php wp_title('',true); ?>
- <?php } bloginfo('name'); ?><?php if ( is_home() ){ ?> - <?php bloginfo('description'); ?><?php } ?><?php if ( is_paged() ){ ?>
- <?php printf( __('Page %1$s of %2$s', ''), intval( get_query_var('paged')), $wp_query->max_num_pages); ?><?php } ?>
</title>
<style type="text/css">
	#glume{width:100%;position:absolute;overflow:hidden;z-index:2;} 
	#glume .Limg{width:100%;height:399px;position:relative;cursor:pointer;} 
	#glume .Limg li{width:100%;height:399px;position:absolute;cursor:pointer;} 
	#glume .Nubbt{display:none;position:absolute;z-index:1;right:5px;bottom:3px;}
	#glume .Nubbt span{display:none;border:1px solid #45A06F;background:#fff;padding:1px 5px;margin:0 2px; font-style:normal;cursor:pointer;} 
	#glume .Nubbt span.on{background:#47AA72;color:#fff;}
	#glume .Limg li.bg_1{background:#d7eefe url(<?php echo get_option('bruis_hdimg01'); ?>) top center no-repeat;}
	#glume .Limg li.bg_2{background:#d7eefe url(<?php echo get_option('bruis_hdimg02'); ?>) top center no-repeat;}
	#glume .Limg li.bg_3{background:#d7eefe url(<?php echo get_option('bruis_hdimg03'); ?>) top center no-repeat;}
	#glume .Limg li.bg_4{background:#d7eefe url(<?php echo get_option('bruis_hdimg04'); ?>) top center no-repeat;}
	#glume .Limg li.bg_5{background:#d7eefe url(<?php echo get_option('bruis_hdimg05'); ?>) top center no-repeat;}
	#glume .Limg li.bg_6{background:#d7eefe url(<?php echo get_option('bruis_hdimg06'); ?>) top center no-repeat;}
</style>
<?php wp_head(); ?>
</head>
<body>
<script type="text/javascript">
	if (typeof(pgvMain) == 'function')
		pgvMain("", {senseParam: "p"});
	window.onerror = function() {return true;}
</script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/microajax.js"></script>
	<script type="text/javascript">
			function cdcAjax(url, callbackFunction) {
				return microAjax(url, callbackFunction);
			}
		</script>
<?php if(is_home()) { ?>
<div id="glume">
<ul class="Limg">
	<li class="bg_1"><a href="javascript:;" target="_blank"> &nbsp; </a></li>
	<li class="bg_2"><a href="javascript:;" target="_blank"> &nbsp; </a></li>
	<li class="bg_3"><a href="javascript:;" target="_blank"> &nbsp; </a></li>
	<li class="bg_4"><a href="javascript:;" target="_blank"> &nbsp; </a></li>
	<li class="bg_5"><a href="javascript:;" target="_blank"> &nbsp; </a></li>
	<li class="bg_6"><a href="javascript:;" target="_blank"> &nbsp; </a></li>
</ul>
<cite class="Nubbt"> <span class="on"> 1 </span> <span> 2 </span> <span>
3 </span> <span> 4 </span> <span> 5 </span> <span> 6 </span> </cite></div>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/head.js"></script>
<?php } ?>
<?php $cat = $_REQUEST['cat']; ?>		
<!--Header-->
<div id="header<?php if(!is_home()) { ?>1<?php } ?>">
<div id="top">
	<div id="nav">
		<a onfocus="this.blur()" href="<?php bloginfo('url'); ?>" id="logo">
			<cite>Stone 创 见</cite>
		</a>
		<div id="menu">
			<ul>
				<li <?php echo empty($cat) ? 'id="on"':'' ?>>
					<a onfocus="this.blur()" href="<?php bloginfo('url'); ?>">首页</a>
				</li>
				<li <?php echo '2' ==$cat ? 'id="on"':'' ?>><a onfocus="this.blur()" href="?cat=2">创</a></li>
				<li <?php echo '3' ==$cat ? 'id="on"':'' ?>><a onfocus="this.blur()" href="?cat=3">见</a></li>
				<li <?php echo '4' ==$cat ? 'id="on"':'' ?>><a onfocus="this.blur()" href="?cat=4">荐</a></li>
				<li <?php echo '5' ==$cat ? 'id="on"':'' ?>><a onfocus="this.blur()" href="?cat=5">感</a></li>
				<li <?php echo '6' ==$cat ? 'id="on"':'' ?>><a onfocus="this.blur()" href="?cat=6">乐</a></li>
				<li id="rss">
					<a onfocus="this.blur()" href="<?php bloginfo('url'); ?>/?feed=rss2" class="rss"target="_blank">
						<cite>RSS</cite>
					</a>
				</li>
			</ul>
		</div>
	</div>
</div>
</div>
<!--Header End-->
<?php flush(); ?>